#ifndef IFTHENELSE_HPP
#define IFTHENELSE_HPP

#include "Instruction.hpp"

class IfThenElse :
    virtual public Instruction
{
    private:
        Expression* condition;
        Instruction* codeExec;
        Instruction* codeExecElse;

    public:
        IfThenElse(Expression* condition, Instruction* codeExec, Instruction* codeExecElse);
        virtual ~IfThenElse();
        virtual void execute();
        virtual void display(const unsigned int shift=0) const;
};

#endif
